<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>{$user_config.info_title}</title>
<meta name="keywords" content="{$user_config.info_keywords}">
<meta name="description" content="{$user_config.info_description}">
<link href="__ROOT__/protected/apps/member/public/css/base.css" rel="stylesheet" type="text/css">
<link href="__ROOT__/protected/apps/member/public/css/style.css" rel="stylesheet" type="text/css">
<script>
var basedir='__PUBLIC__/ui/';
var userdir='__ROOT__/protected/apps/member/public/js/';
</script>
<script src="__PUBLIC__/ui/do.js"></script>
<script src="__PUBLIC__/ui/config.js"></script>
<script src="__ROOT__/protected/apps/member/public/js/user_config.js"></script>
</head>
<body>
<div id="head">
  <div class="warp">
    <div id="logo"></div>
    <div id="nav">
    	<ul>
        	<li><a href="{$url(member/index/index)}">会员中心</a></li>
        	<li><a href="__ROOT__/">网站首页</a></li>
			<?php if(!empty($user_id)){ ?>
			<li><a href="{$url(message/index/index)}">短信息 <font color="#00CC33" id="msg-tip">(0)</font></a></li>
			<?php } ?>
        </ul>
    </div>
    
  </div>
</div>
<!--common-->
<div id="foot"> © 2005-2013 DUXCMS 版权所有，并保留所有权利。 </div>
<div id="msg_music"></div>

</body>
<script>
var msg_tip = new function(){}; 
Do.ready('userbase', function() {
	window.msg_tip=function msg_tip(){
		$.get('{$url(message/unread_num)}','',function(data){
			var num=parseInt(data);
			if(num>0){
				$('#msg-tip').html('('+num+')');
				$('#msg_music').html('<embed loop="0" autostart="true" src="__ROOT__/protected/apps/member/public/images/msg.mp3" height="0" width="0">');
			}
		});
	}
	msg_tip();
	setInterval(msg_tip, 300000);
	
});
</script>
</html>